#!/bin/bash

export MOZILLA_HOME="@MOZILLA_HOME@"
if [ -n $MOZILLA_HOME ]; then
	export MOZILLA_FIVE_HOME=$MOZILLA_HOME
	if [ -n $LD_LIBRARY_PATH ]; then
		export LD_LIBRARY_PATH="$MOZILLA_HOME:$LD_LIBRARY_PATH"
	else
		export LD_LIBRARY_PATH="$MOZILLA_HOME"
	fi
fi

if [ -n $LD_LIBRARY_PATH ]; then
	export LD_LIBRARY_PATH="@prefix@/lib/galaxium/:$LD_LIBRARY_PATH"
else
	export LD_LIBRARY_PATH="@prefix@/lib/galaxium/"
fi

exec -a "galaxium" mono @prefix@/lib/galaxium/Galaxium.Startup.exe $@
